package com.trivera.adhoc;

public class TestTaxEntity {

	public static void main(String[] args) 
	{
		TaxableEntity c = TaxableEntityFactory.createEntity("IBM", "75-1234567");
		TaxableEntity e1 = TaxableEntityFactory.createEntity("Chuck", "123-45-6789");
		TaxableEntity e2 = TaxableEntityFactory.createEntity("Chuck", "123-45-6789");
		
		c.hire(e1);
		c.hire(e2);
		c.hire(TaxableEntityFactory.createEntity("IBM Consulting", "75-5551111"));
		c.hire(new RetailStore());
		payit(c);
		//payit (new RetailStore());
	}
	
	public static void payit(Payable e)
	{
		e.pay(100);
	}
	
	
	

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	

}
